---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-40-6f2ef9cbf67e> in <module>()
10 for x in soup.find_all('td', attrs = {'class' : 'title'}):
11 urls = "http://program.tving.com/" + x.a['href']
---> 12 res2 = requests.get(urls)
13 soup2 = BeautifulSoup(res2.content)
14
D:\Anaconda2\lib\site-packages\requests\api.pyc in get(url, params, **kwargs)
68
69 kwargs.setdefault('allow_redirects', True)
---> 70 return request('get', url, params=params, **kwargs)
71
72
D:\Anaconda2\lib\site-packages\requests\api.pyc in request(method, url, **kwargs)
54 # cases, and look like a memory leak in others.
55 with sessions.Session() as session:
---> 56 return session.request(method=method, url=url, **kwargs)
57
58
D:\Anaconda2\lib\site-packages\requests\sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
486 }
487 send_kwargs.update(settings)
--> 488 resp = self.send(prep, **send_kwargs)
489
490 return resp
D:\Anaconda2\lib\site-packages\requests\sessions.pyc in send(self, request, **kwargs)
607
608 # Send the request
--> 609 r = adapter.send(request, **kwargs)
610
611 # Total elapsed time of the request (approximately)
D:\Anaconda2\lib\site-packages\requests\adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies)
421 decode_content=False,
422 retries=self.max_retries,
--> 423 timeout=timeout
424 )
425
D:\Anaconda2\lib\site-packages\requests\packages\urllib3\connectionpool.pyc in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, **response_kw)
592 timeout=timeout_obj,
593 body=body, headers=headers,
--> 594 chunked=chunked)
595
596 # If we're going to release the connection in ``finally:``, then
D:\Anaconda2\lib\site-packages\requests\packages\urllib3\connectionpool.pyc in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
382 try:
383 try: # Python 2.7, use buffering of HTTP responses
--> 384 httplib_response = conn.getresponse(buffering=True)
385 except TypeError: # Python 2.6 and older, Python 3
386 try:
D:\Anaconda2\lib\httplib.pyc in getresponse(self, buffering)
1119
1120 try:
-> 1121 response.begin()
1122 assert response.will_close != _UNKNOWN
1123 self.__state = _CS_IDLE
D:\Anaconda2\lib\httplib.pyc in begin(self)
436 # read until we get a non-100 response
437 while True:
--> 438 version, status, reason = self._read_status()
439 if status != CONTINUE:
440 break
D:\Anaconda2\lib\httplib.pyc in _read_status(self)
392 def _read_status(self):
393 # Initialize with Simple-Response defaults
--> 394 line = self.fp.readline(_MAXLINE + 1)
395 if len(line) > _MAXLINE:
396 raise LineTooLong("header line")
D:\Anaconda2\lib\socket.pyc in readline(self, size)
478 while True:
479 try:
--> 480 data = self._sock.recv(self._rbufsize)
481 except error, e:
482 if e.args[0] == EINTR:
KeyboardInterrupt: